(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2262],{23279:function(e,t,n){var i=n(13218),r=n(7771),o=n(14841),c=Math.max,u=Math.min;e.exports=function(e,t,n){var a,l,s,f,d,m,v=0,w=!1,h=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function E(t){var n=a,i=l;return a=l=void 0,v=t,f=e.apply(i,n)}function p(e){var n=e-m,i=e-v;return void 0===m||n>=t||n<0||h&&i>=s}function x(){var e,n,i,o=r();if(p(o))return _(o);d=setTimeout(x,(e=o-m,n=o-v,i=t-e,h?u(i,s-n):i))}function _(e){return(d=void 0,g&&a)?E(e):(a=l=void 0,f)}function T(){var e,n=r(),i=p(n);if(a=arguments,l=this,m=n,i){if(void 0===d)return v=e=m,d=setTimeout(x,t),w?E(e):f;if(h)return clearTimeout(d),d=setTimeout(x,t),E(m)}return void 0===d&&(d=setTimeout(x,t)),f}return t=o(t)||0,i(n)&&(w=!!n.leading,s=(h="maxWait"in n)?c(o(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g),T.cancel=function(){void 0!==d&&clearTimeout(d),v=0,a=m=l=d=void 0},T.flush=function(){return void 0===d?f:_(r())},T}},7771:function(e,t,n){var i=n(55639);e.exports=function(){return i.Date.now()}},2262:function(e,t,n){"use strict";n.r(t),n.d(t,{CtaBanner:function(){return l}});var i=n(85893),r=n(14941),o=n(23279),c=n.n(o),u=n(67294),a=n(8878);let l=e=>{let{children:t,scrollDepth:n,delayTime:o,media:l}=e,[s,f]=(0,u.useState)(!1),[d,m]=(0,u.useState)(!1),v=(0,u.useRef)(),w=(0,u.useCallback)(()=>{f(!1),m(!0)},[]),h=(0,u.useCallback)(()=>{let e=(window.pageYOffset+window.innerHeight)*100/document.body.scrollHeight;n&&e>=n&&f(!0)},[n]),g=c()(()=>{h()},100,{leading:!0});return(0,u.useEffect)(()=>!window||d?()=>null:s?(v.current&&clearTimeout(v.current),window.removeEventListener("scroll",g),()=>null):0!==o&&(o||n)?(o&&(v.current=setTimeout(()=>{f(!0)},1e3*o)),n)?(window.scrollY&&g(),window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}):()=>null:(f(!0),()=>null),[d,g,o,n,s]),(0,i.jsx)(r.c,{onClose:w,visible:s,logoURL:(0,a.E)(l).imageUrl,children:t})}},8878:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var i=n(77513);let r=(e,t,n)=>{let r=["quality=".concat(t,",format=auto")];n&&r.push("width=".concat(n));let o=r.join(",");return"".concat(i.L4,"/cdn-cgi/image/").concat(o,"/").concat(e)},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return{noExtraOptimization:!0,imageUrl:""};let{qualityIndex:n=70,width:o}=t,c=!e.startsWith(i.L4)||e.endsWith(".svg")||e.endsWith(".webp")||e.endsWith(".gif"),u=c?e:r(e,n,o);return{noExtraOptimization:c,imageUrl:u}}},14941:function(e,t,n){"use strict";n.d(t,{N:function(){return l},c:function(){return s}});var i=n(93967),r=n(67294),o=n(63610),c=n(14116),u=n(20551),a=n(3074);let l=(0,u.Q)("cta-banner"),s=({className:e,onClose:t,visible:n,logoURL:u,children:s})=>{let{isMobile:f}=(0,a.QB)();return n?r.createElement("div",{className:i(`${l}`,e)},r.createElement("div",{className:`${l}__main`},r.createElement("div",{className:`${l}__logo`},r.createElement("img",{src:u,alt:""})),s),r.createElement(o.J,{color:"third",icon:c.default,size:f?"xxs":"xs",onClick:t,className:`${l}__close`})):null}}}]);